<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			
		},
		onShow: function() {
			console.log('App Show')
			
			let pages2=getCurrentPages();
			
			console.log(8888,pages2);
			
			//不限制登录的页面
			let urls=["/pages/register/register","/pages/login/login"]
			//
			//得到当前页面
			
			if(!uni.getStorageSync("token")){
				uni.redirectTo({
					url:"/pages/login/login"
				})
			}
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="less">
	/*每个页面公共css */
	@import "static/css/font/iconfont.css";
</style>
